|
SAP Convergent Charging
Java and XML APIs (Core) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.highdeal.pnr.hci.PricingMacroModel
public class PricingMacroModel
This class represents a pricing macro.
The currency used in a pricing macro always corresponds to the currency used by the calling charge component.
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="pricingMacro">
<xs:complexType>
<xs:sequence>
<xs:element ref="inProperty" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="outProperty" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="component" minOccurs="0" maxOccurs="1"/>
<xs:element ref="rootChronology" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
<xs:attribute name="description" type="xs:string"/>
<xs:attribute name="owner" type="xs:string" use="required"/>
<xs:attribute name="currency" type="xs:string" use="optional"/> <!-- deprecated -->
<xs:attribute name="code" type="xs:string" use="required"/>
<xs:attribute name="reference" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:element name="rootChronology">
<xs:complexType>
<xs:sequence>
<xs:element ref="chronology" minOccurs="1" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
</xs:element>
| Constructor Summary | |
|---|---|
PricingMacroModel()
Builds an empty PricingMacroModel. |
|
PricingMacroModel(java.lang.String code,
java.lang.String description,
java.lang.String currencyCode)
Deprecated. Deprecated since version 3.0 of SAP CC |
|
| Method Summary | |
|---|---|
void |
addCharacterData(java.lang.String cData)
Adds character data to the content element. |
void |
addChild(java.lang.String tagName,
XMLMarshallable child)
Adds a child to the object, the child representing
the marshallable object which must be added to the element. |
boolean |
checkValidity()
Returns true if the pricing macro is valid. |
java.lang.String |
getCode()
Gets the code. |
RatingContextDescription |
getContext(ContextualNode child)
Updates the context for the specified child and returns it. |
java.lang.String |
getCurrencyCode()
Deprecated. Deprecated since version 3.0 of SAP CC |
java.lang.String |
getDescription()
Gets the description |
java.util.Vector<InMacroPropertyModel> |
getInProperties()
Gets the in properties. |
InMacroPropertyModel |
getInProperty(java.lang.String name)
Gets the in property with the specified name. |
java.util.Vector<OutMacroPropertyModel> |
getOutProperties()
Gets the out properties. |
java.lang.String |
getOwner()
Gets the owner |
java.lang.String |
getReference()
Gets the reference. |
RateComponentModel |
getRoot()
Gets the root. |
ChronologyModel |
getRootChronology()
Gets the root chronology. |
java.lang.String |
getTagName()
Gets the XML tag name of the HCI model. |
RatingContextDescription |
inheritedContext()
Gets the inherited context. |
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children. |
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being processed. |
void |
setCode(java.lang.String c)
Sets the code. |
void |
setContext(RatingContextDescription contextDescription)
Sets the context. |
void |
setCurrencyCode(java.lang.String currencyCode)
Deprecated. Deprecated since version 3.0 of SAP CC |
void |
setDescription(java.lang.String d)
Sets the description |
void |
setInProperties(java.util.Vector<InMacroPropertyModel> inProperties)
Sets the in properties. |
void |
setOutProperties(java.util.Vector<OutMacroPropertyModel> outProperties)
Sets the out properties. |
void |
setOwner(java.lang.String p)
Sets the owner |
void |
setParent(ContextualNode node)
Sets the parent. |
void |
setReference(java.lang.String r)
Sets the reference. |
void |
setRoot(RateComponentModel r)
Sets the root. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PricingMacroModel()
@Deprecated
public PricingMacroModel(java.lang.String code,
java.lang.String description,
java.lang.String currencyCode)
code - The code of the pricing macrodescription - The description of the pricing macrocurrencyCode - The currency code of the pricing macro| Method Detail |
|---|
public java.lang.String getReference()
public void setReference(java.lang.String r)
r - the reference.public java.lang.String getCode()
public void setCode(java.lang.String c)
c - the code.public RateComponentModel getRoot()
public void setRoot(RateComponentModel r)
r - the root.public java.lang.String getDescription()
public void setDescription(java.lang.String d)
d - The description@Deprecated public java.lang.String getCurrencyCode()
null@Deprecated public void setCurrencyCode(java.lang.String currencyCode)
currencyCode - the currency codepublic java.lang.String getOwner()
getOwner in interface ICatalogObjectpublic void setOwner(java.lang.String p)
p - the ownerpublic java.util.Vector<InMacroPropertyModel> getInProperties()
InMacroPropertyModel.public InMacroPropertyModel getInProperty(java.lang.String name)
name - name of the in property to fetch
null if not found)public void setInProperties(java.util.Vector<InMacroPropertyModel> inProperties)
inProperties - a Vector of InMacroPropertyModel.public java.util.Vector<OutMacroPropertyModel> getOutProperties()
OutMacroPropertyModel.public void setOutProperties(java.util.Vector<OutMacroPropertyModel> outProperties)
outProperties - a Vector of {link OutMacroPropertyModel OutMacroPropertyModel}.public ChronologyModel getRootChronology()
public void setParent(ContextualNode node)
setParent in interface ContextualNodenode - the parent.public void setContext(RatingContextDescription contextDescription)
contextDescription - the context.public RatingContextDescription getContext(ContextualNode child)
getContext in interface ContextualNodechild - The child node
public RatingContextDescription inheritedContext()
inheritedContext in interface ContextualNodepublic boolean checkValidity()
public java.lang.String getTagName()
ITagNameProvider
getTagName in interface ITagNameProviderpublic void setAttributes(XMLAttributes atts)
XMLMarshallable
setAttributes in interface XMLMarshallableatts - The XML attributes of the current elementpublic void addCharacterData(java.lang.String cData)
XMLMarshallable
addCharacterData in interface XMLMarshallablecData - The character data to be added
public void addChild(java.lang.String tagName,
XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.
addChild in interface XMLMarshallabletagName - The name of tag for the childchild - The child to be addedpublic void marshal(XMLOutputter output)
XMLMarshallable
marshal in interface XMLMarshallableoutput - The XML output to marshal the object into
|
Document Published: October 2015 (SAP CC 4.0 SP10 and Later) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||